package com.swt.testdemo.form;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

/**
 * @author BleethNie
 * @version 1.0
 * @date 2020-01-08 15:15
 **/
@Data
@ApiModel(value = "用户登录表单", description = "用户登录表单")
public class SysLoginForm {


    @ApiModelProperty(value = "uuid", example = "8e04634d-3420-47f8-a1af-392d77301bb9")
    @NotBlank(message = "uuid不可为空")
    private String uuid;

    @ApiModelProperty(value = "用户名或者手机号", example = "admin")
    @NotBlank(message = "用户名或者手机号不能为空")
    @Length(min = 1, max = 20)
    private String username;

    @ApiModelProperty(value = "密码", example = "224cf2b695a5e8ecaecfb9015161fa4b")
    @NotBlank(message = "用户名不能为空")
    private String password;

    @ApiModelProperty(value = "captcha", example = "zsg1k")
    @NotBlank(message = "captcha不可为空")
    private String captcha;

    @ApiModelProperty(value = "mac")
    private String mac;

}